# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit kde eutils subversion

DESCRIPTION="GUI for xneur based on GTK"
HOMEPAGE="http://www.xneur.ru/" 
IUSE=""
KEYWORDS="x86 ~x86 amd64 ~amd64" 
SLOT="0"
RDEPEND=">=x11-apps/xneur-${PV}"
DEPEND="${RDEPEND}"

ESVN_REPO_URI="svn://xneur.ru:3690/xneur/gxneur"
ESVN_PROJECT="xneur"
[[ ${PV} == 9999.* ]] && ESVN_UPDATE_CMD="svn up -r ${PV/9999./}"
#ESVN_BOOTSTRAP="./autogen.sh"
#ESVN_OPTIONS="-r${PV/*_pre}"
#ESVN_STORE_DIR="${DISTDIR}/svn-src"
#S=${WORKDIR}/trunk

src_compile() { 
   cd ${WORKDIR}/${P}
    if [[ ${PV} == 9999.* ]] ; then
        /bin/sh ./autogen.sh || die "autogen.sh failed"
    fi
   ./configure --prefix=/usr || die "configure failed"
   emake || die "emake failed" 
} 

src_install() { 
   export INSTALLDIR="/usr"
   emake DESTDIR="${D}" install || die "emake install failed" 
}
